import Vue from 'vue'
import VueRouter from 'vue-router'
import layout from '@/views/layout'
import login from '@/views/login'

Vue.use(VueRouter)

const routes = [
  {
    path: '/layout',
    name:layout,
    component: layout
  },
  {
    path: '/login',
    name:login,
    component:login
  },
  {
    path:'/',
    redirect:'/login'
  }
]

const router = new VueRouter({
  routes
})

export default router
